package thomasweb.spring.data;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@EnableAutoConfiguration
public class App 
{ 

/*    @Bean
    ServletRegistrationBean h2servletRegistration(){
        ServletRegistrationBean registrationBean = new ServletRegistrationBean( new WebServlet());
        registrationBean.addUrlMappings("/console/*");
        return registrationBean;
    }*/
    
    public static void main(String[] args) throws Exception {
        //SpringApplication.run(App.class, args);
        //new SpringApplicationBuilder(App.class).profiles("2db").web(true).run(args);
    	new SpringApplicationBuilder(App.class).profiles("2db").run(args);
    }
    
    
}
